/**
 * 
 */

/**
 * @author andipandi
 *
 */
public class InfoPacket {
	
	/**
	 * constants
	 */
	public static final int TYPE_GATEWAY 		= 0;
	public static final int TYPE_INTERMEDIATE 	= 2;
	public static final int TYPE_SENSOR		 	= 1;
	public static final int TYPE_UNKNOWN 		= 0xFF;
	
	/**
	 * Attributes
	 */
	int node_type = TYPE_UNKNOWN;
	int cost = 0;
	int neighbours = 0;
	int num_sd_paging = 0;

	//packet statistic
	int num_rx_dat = 0;
	int num_rx_adv = 0;
	int num_rx_time = 0;
	int num_rx_vAck = 0;
	int num_rx_eAck = 0;

	int num_tx_dat = 0;
	int num_tx_adv = 0;
	int num_tx_eAck = 0;
	int num_lost_races = 0;
	int num_retransmissions = 0;

	//errors and warnings
	int num_errors = 0;
	int num_warnings = 0;
	int last_error = 0;
	int last_warning = 0;

	//time statistics
	int num_waitcycles = 0;
	short child_time_offset_max = 0;
	int stime_last_tx_adv = 0;
	int stime_last_tx_time = 0;
	int stime_last_tx_eack = 0;
	int stime_last_tx_dat = 0;
	int stime_last_rx_adv = 0;
	int stime_last_rx_time = 0;
	int stime_last_rx_eack = 0;
	int stime_last_rx_dat = 0;
	int stime_max_rx_adv = 0;
	int stime_max_rx_time = 0;
	int stime_max_rx_eack = 0;
	int stime_max_rx_dat = 0;
	int stime_min_rx_adv = 0;
	int stime_min_rx_time = 0;
	int stime_min_rx_eack = 0;
	int stime_min_rx_dat = 0;
	int time_adv_slot = 0;
	int time_dat_slot = 0;
	int time_last_rx_adv = 0;
	int time_last_delay = 0;
}
